with open("name_infor","a+",encoding="utf-8") as fp:
    username_in=input("请输入您的姓名：")
    fp.write(f"{username_in}\n")
    print("存储成功！")